<div id="navigation">
	<a href="{U_HOME}">{DOMAIN} cPanel Index</a> :: <a href="{U_FILE_MANAGER}">File Manager</a> :: File Permissions 
</div>
<br />
<script>

function calcperm() {

        document.fmode.u.value = 0;

        if (document.fmode.ur.checked) {

                document.fmode.u.value = document.fmode.u.value * 1 + document.fmode.ur.value * 1;

        }

        if (document.fmode.uw.checked) {

                document.fmode.u.value = document.fmode.u.value * 1 + document.fmode.uw.value * 1;

        }

        if (document.fmode.ux.checked) {

                document.fmode.u.value = document.fmode.u.value * 1 + document.fmode.ux.value * 1;

        }

        document.fmode.g.value = 0;

        if (document.fmode.gr.checked) {

                document.fmode.g.value = document.fmode.g.value * 1 + document.fmode.gr.value * 1;

        }

        if (document.fmode.gw.checked) {

                document.fmode.g.value = document.fmode.g.value * 1 + document.fmode.gw.value * 1;

        }

        if (document.fmode.gx.checked) {

                document.fmode.g.value = document.fmode.g.value * 1 + document.fmode.gx.value * 1;

        }

        document.fmode.w.value = 0;

        if (document.fmode.wr.checked) {

                document.fmode.w.value = document.fmode.w.value * 1 + document.fmode.wr.value * 1;

        }

        if (document.fmode.ww.checked) {

                document.fmode.w.value = document.fmode.w.value * 1 + document.fmode.ww.value * 1;

        }

        if (document.fmode.wx.checked) {

                document.fmode.w.value = document.fmode.w.value * 1 + document.fmode.wx.value * 1;

        }

}               
</script> 

You are changing the permissions for <i>{DIRECTORY}/{FILE}</i>.<br /><br />
<form action="{S_ACTION}" method="{S_METHOD}" name="fmode">
	{S_HIDDEN_VARS} 
	<table align="center">
		<tr>
			<th>
				Mode 
			</th>
			<th>
				User 
			</th>
			<th>
				Group 
			</th>
			<th>
				World 
			</th>
		</tr>
		<tr>
			<td>
				Read 
			</td>
			<td>
				<input {USER_READ_CHECKED} type="checkbox" name="ur" value="4" onClick="calcperm();"> 
			</td>
			<td>
				<input {GROUP_READ_CHECKED} type="checkbox" name="gr" value="4" onClick="calcperm();"> 
			</td>
			<td>
				<input {WORLD_READ_CHECKED} type="checkbox" name="wr" value="4" onClick="calcperm();"> 
			</td>
		</tr>
		<tr>
			<td>
				Write 
			</td>
			<td>
				<input {USER_WRITE_CHECKED} type="checkbox" name="uw" value="2" onClick="calcperm();"> 
			</td>
			<td>
				<input {GROUP_WRITE_CHECKED}type="checkbox" name="gw" value="2" onClick="calcperm();"> 
			</td>
			<td>
				<input {WORLD_WRITE_CHECKED} type="checkbox" name="ww" value="2" onClick="calcperm();"> 
			</td>
		</tr>
		<tr>
			<td>
				Execute 
			</td>
			<td>
				<input {USER_EXECUTE_CHECKED} type="checkbox" name="ux" value="1" onClick="calcperm();"> 
			</td>
			<td>
				<input {GROUP_EXECUTE_CHECKED} type="checkbox" name="gx" value="1" onClick="calcperm();"> 
			</td>
			<td>
				<input {WORLD_EXECUTE_CHECKED} type="checkbox" name="wx" value="1" onClick="calcperm();"> 
			</td>
		</tr>
		<tr>
			<td>
				Permission 
			</td>
			<td>
				<input type="text" name="u" size="1" value="{USER_PERMISSION}" onChange="recheck();"> 
			</td>
			<td>
				<input type="text" name="g" size="1" value="{GROUP_PERMISSION}" onChange="recheck();"> 
			</td>
			<td>
				<input type="text" name="w" size="1" value="{WORLD_PERMISSION}" onChange="recheck();"> 
			</td>
		</tr>
	</table>
	<div align="center">
		<input type="submit" value="Change Permissions"> 
	</div>
</form>
